<?php if (!isset($v_sval)) exit;

    $user = (isset($_REQUEST['user']) ? $_REQUEST['user'] : '');
    if (!isset($_SESSION["user_name"])) {
        setcookie("login_mesage", "B&#7841;n truy c&#7853;p v&#224;o v&#249;ng &#273;&#432;&#7907;c b&#7843;o v&#7879; h&#227;y &#273;&#259;ng nh&#7853;p &#273;&#7875; ti&#7871;p t&#7909;c ");
        if ( isset($_SERVER["HTTP_REFERER"]) )
            redir("index.php?a=LI&link=".$_SERVER["HTTP_REFERER"]);
        else
            redir("index.php?a=LI");
        exit;
    }

    $acc = strtoupper($user);
    switch ($user) {
        case 'HOME';
            include 'manage_page/index.php';
        break;
        case 'UI';
            include 'act_upload_image.php';
        break;
        case 'EVEN';
            include 'event/index.php';
        break;
        case 'ALBU';
            include 'album/index.php';
        break;
        case 'DIAR';
            include 'diary/index.php';
        break;
        case 'NEWS';
            include 'news/index.php';
        break;
        case 'INFO';
            include 'info/index.php';
        break;
        case 'MAP';
            include 'map/index.php';
        break;
        default;
            include "account/user_header.php";
            include "account/account_footer.php";
        break;
    }
?>	
